 |
|
|
|
|
Opening a Forward-Only Recordset |
|
|
|
| |
 |
|
|
|
|
Opening a Connection and Recordset Together |
|
|
|
| |
 |
|
|
|
|
Error Handling |
|
|
|
| |
 |
|
|
|
|
The Error Object |
|
|
|
| |
 |
|
|
|
|
Error Reporting |
|
|
|
| |
 |
|
|
|
|
Command Objects |
|
|
|
| |
 |
|
|
|
|
Reasons to Use a Command Object |
|
|
|
| |
 |
|
|
|
|
Summary |
|
|
|
| |
 |
|
|
|
|
Review Questions |
|
|
|
| |
 |
|
|
|
|
Exercise |
|
|
|
| |
|
|
|
|
|
25
Data Entry with ADO Objects |
|
|
|
| |
 |
|
|
|
|
Creating a New ADO Project |
|
|
|
| |
 |
|
|
|
|
Sub Main() |
|
|
|
| |
 |
|
|
|
|
Building the Data Entry Form |
|
|
|
| |
 |
|
|
|
|
Setting Up the Form |
|
|
|
| |
 |
|
|
|
|
Loading the List Box |
|
|
|
| |
 |
|
|
|
|
Displaying an Employee |
|
|
|
| |
 |
|
|
|
|
The FormFind() Function |
|
|
|
| |
 |
|
|
|
|
The FormShow Procedure |
|
|
|
| |
 |
|
|
|
|
The Field2Str() Function |
|
|
|
| |
 |
|
|
|
|
The ListFindItem() Procedure |
|
|
|
| |
 |
|
|
|
|
The Field2CheckBox() Function |
|
|
|
| |
 |
|
|
|
|
Adding Data |
|
|
|
| |
 |
|
|
|
|
The FormClear Procedure |
|
|
|
| |
 |
|
|
|
|
Saving the Data with the FormSave Procedure |
|
|
|
| |
 |
|
|
|
|
Editing Data |
|
|
|
| |
 |
|
|
|
|
Detecting That Data Has Changed |
|
|
|
| |
 |
|
|
|
|
Deleting Data |
|
|
|
| |
 |
|
|
|
|
Handling an Empty Recordset |
|
|
|
| |
 |
|
|
|
|
Summary |
|
|
|
| |
 |
|
|
|
|
Review Questions |
|
|
|
| |
 |
|
|
|
|
Exercises |
|
|
|
| |
| |
 |
|
|
|
|
Data Form Wizard |
|
|
|
| |
 |
|
|
|
|
Examples |
|
|
|
| |
 |
|
|
|
|
Application Wizard |
|
|
|
| |
 |
|
|
|
|
Summary |
|
|
|
| |
 |
|
|
|
|
Review Questions |
|
|
|
| |
 |
|
|
|
|
Exercises |
|
|
|
| |
| |
 |
|
|
|
|
Visual Database Tools Overview |
|
|
|
| |
 |
|
|
|
|
Data Environment Designer |
|
|
|
| |
 |
|
|
|
|
Connecting to Microsoft Access |
|
|
|
| |
 |
|
|
|
|
Adding Commands |
|
|
|
| |
 |
|
|
|
|
Setting Field Properties |
|
|
|
| |
 |
|
|
|
|
Using the Connection and Command Objects at Runtime |
|
|
|
| |
 |
|
|
|
|
Connecting to SQL Server |
|
|
|
| |
 |
|
|
|
|
Creating Data-bound Forms |
|
|
|
| |
 |
|
|
|
|
Data View Window |
|
|
|
| |
 |
|
|
|
|
Creating a Data Link |
|
|
|
| |
 |
|
|
|
|
Using the Data Link with a Jet MDB |
|
|
|
| |
 |
|
|
|
|
Using a SQL Server Data Link |
|
|
|
| |
 |
|
|
|
|
The Query Design Window |
|
|
|
| |
 |
|
|
|
|
SQL Editor for Stored Procedures and Triggers |
|
|
|
| |
 |
|
|
|
|
The Database Diagram Window |
|
|
|
| |
 |
|
|
|
|
Visual Data Manager |
|
|
|
| |
 |
|
|
|
|
Summary |
|
|
|
| |
 |
|
|
|
|
Review Questions |
|
|
|
| |
 |
|
|
|
|
Exercise |
|
|
|
| |